/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJPanel.java
 *
 * Created on Oct 8, 2009, 9:09:29 PM
 */

package GISPackage;

/**
 *
 * @author Heather
 */
public class NewJPanel extends javax.swing.JPanel {

    /** Creates new form NewJPanel */
    public NewJPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    createNewRegionDialog = new javax.swing.JDialog();
    createNewRegionDialogContainer = new javax.swing.JPanel();
    createNewRegionDialogTitle = new javax.swing.JLabel();
    createNewRegionDialogName = new javax.swing.JTextField();
    createNewRegionDialogNameTitle = new javax.swing.JLabel();
    createNewRegionDialogStatisticsButton = new javax.swing.JButton();
    createNewRegionDialogAltruismButton = new javax.swing.JButton();
    createNewRegionDone = new javax.swing.JButton();
    createNewRegionStructuralVariablesButton = new javax.swing.JButton();
    fileChooser = new javax.swing.JFileChooser();
    errorDialog = new javax.swing.JDialog();
    errorDialogContainer = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    errorDialogText = new javax.swing.JTextArea();

    createNewRegionDialogContainer.setBackground(new java.awt.Color(204, 255, 255));
    createNewRegionDialogContainer.setLayout(null);

    createNewRegionDialogTitle.setFont(new java.awt.Font("Tahoma", 3, 14));
    createNewRegionDialogTitle.setText("Create a new region");
    createNewRegionDialogContainer.add(createNewRegionDialogTitle);
    createNewRegionDialogTitle.setBounds(10, 10, 200, 17);

    createNewRegionDialogName.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        createNewRegionDialogNameActionPerformed(evt);
      }
    });
    createNewRegionDialogContainer.add(createNewRegionDialogName);
    createNewRegionDialogName.setBounds(10, 60, 240, 20);

    createNewRegionDialogNameTitle.setText("Name");
    createNewRegionDialogContainer.add(createNewRegionDialogNameTitle);
    createNewRegionDialogNameTitle.setBounds(10, 40, 120, 14);

    createNewRegionDialogStatisticsButton.setText("Set statistics file");
    createNewRegionDialogContainer.add(createNewRegionDialogStatisticsButton);
    createNewRegionDialogStatisticsButton.setBounds(10, 90, 240, 23);

    createNewRegionDialogAltruismButton.setText("Set altruism file directory");
    createNewRegionDialogAltruismButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        createNewRegionDialogAltruismButtonActionPerformed(evt);
      }
    });
    createNewRegionDialogContainer.add(createNewRegionDialogAltruismButton);
    createNewRegionDialogAltruismButton.setBounds(10, 120, 240, 23);

    createNewRegionDone.setText("Done");
    createNewRegionDialogContainer.add(createNewRegionDone);
    createNewRegionDone.setBounds(10, 180, 240, 23);

    createNewRegionStructuralVariablesButton.setText("Set structural variables file");
    createNewRegionDialogContainer.add(createNewRegionStructuralVariablesButton);
    createNewRegionStructuralVariablesButton.setBounds(10, 150, 240, 23);

    javax.swing.GroupLayout createNewRegionDialogLayout = new javax.swing.GroupLayout(createNewRegionDialog.getContentPane());
    createNewRegionDialog.getContentPane().setLayout(createNewRegionDialogLayout);
    createNewRegionDialogLayout.setHorizontalGroup(
      createNewRegionDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(createNewRegionDialogContainer, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
    );
    createNewRegionDialogLayout.setVerticalGroup(
      createNewRegionDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(createNewRegionDialogContainer, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)
    );

    errorDialogContainer.setBackground(new java.awt.Color(255, 204, 204));

    errorDialogText.setBackground(new java.awt.Color(255, 204, 204));
    errorDialogText.setColumns(20);
    errorDialogText.setRows(5);
    jScrollPane1.setViewportView(errorDialogText);

    javax.swing.GroupLayout errorDialogContainerLayout = new javax.swing.GroupLayout(errorDialogContainer);
    errorDialogContainer.setLayout(errorDialogContainerLayout);
    errorDialogContainerLayout.setHorizontalGroup(
      errorDialogContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(errorDialogContainerLayout.createSequentialGroup()
        .addContainerGap()
        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE)
        .addContainerGap())
    );
    errorDialogContainerLayout.setVerticalGroup(
      errorDialogContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(errorDialogContainerLayout.createSequentialGroup()
        .addContainerGap()
        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    javax.swing.GroupLayout errorDialogLayout = new javax.swing.GroupLayout(errorDialog.getContentPane());
    errorDialog.getContentPane().setLayout(errorDialogLayout);
    errorDialogLayout.setHorizontalGroup(
      errorDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(errorDialogContainer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );
    errorDialogLayout.setVerticalGroup(
      errorDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addComponent(errorDialogContainer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 0, Short.MAX_VALUE)
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGap(0, 0, Short.MAX_VALUE)
    );
  }// </editor-fold>//GEN-END:initComponents

    private void createNewRegionDialogNameActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_createNewRegionDialogNameActionPerformed
    {//GEN-HEADEREND:event_createNewRegionDialogNameActionPerformed
      // TODO add your handling code here:
}//GEN-LAST:event_createNewRegionDialogNameActionPerformed

    private void createNewRegionDialogAltruismButtonActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_createNewRegionDialogAltruismButtonActionPerformed
    {//GEN-HEADEREND:event_createNewRegionDialogAltruismButtonActionPerformed
      // TODO add your handling code here:
}//GEN-LAST:event_createNewRegionDialogAltruismButtonActionPerformed


  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JDialog createNewRegionDialog;
  private javax.swing.JButton createNewRegionDialogAltruismButton;
  private javax.swing.JPanel createNewRegionDialogContainer;
  private javax.swing.JTextField createNewRegionDialogName;
  private javax.swing.JLabel createNewRegionDialogNameTitle;
  private javax.swing.JButton createNewRegionDialogStatisticsButton;
  private javax.swing.JLabel createNewRegionDialogTitle;
  private javax.swing.JButton createNewRegionDone;
  private javax.swing.JButton createNewRegionStructuralVariablesButton;
  private javax.swing.JDialog errorDialog;
  private javax.swing.JPanel errorDialogContainer;
  private javax.swing.JTextArea errorDialogText;
  private javax.swing.JFileChooser fileChooser;
  private javax.swing.JScrollPane jScrollPane1;
  // End of variables declaration//GEN-END:variables

}
